package com.hunan.api.catv.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 激活榜单二维码表
 * </p>
 *
 * @author jiangzhuan
 * @since 2021-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("activation_qr_code")
public class ActivationQrCode extends Model<ActivationQrCode> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类型0：红色观影
     */
    private Integer type;

    /**
     * 激活码
     */
    private String code;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 修改人
     */
    private Integer updateBy;

    /**
     * 状态：0：未激活 1：已激活
     */
    private Integer state;

    /**
     * 逻辑删除 0：删除，1：未删除
     */
    private Integer deleted;

    /**
     * 下载次数
     */
    private Integer downloadNum;

    /**
     * 激活用户
     */
    private Integer memberId;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String CODE = "code";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_BY = "create_by";

    public static final String UPDATE_BY = "update_by";

    public static final String STATE = "state";

    public static final String DELETED = "deleted";

    public static final String DOWNLOAD_NUM = "download_num";

    public static final String MEMBER_ID = "member_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
